<?php 
    /*$K_TRANS = Translation::getInstance();
    $KARM = $_SESSION[K_SESSION_MNG]["KARM"];*/
	$Z_USER = Zsession::getUserFromSession();
	$this->load->library('Zencryption'); 
    echo doctype();
?>
<html>
<head>
<title><?=$z_page_title?></title>
<meta http-equiv="Content-type" content="text/html; charset=<?=CHAR_SET?>" />
<link type="text/css" rel="stylesheet" href="<?=base_url()?>css/style.css" />
<link type="text/css" href="<?=base_url();?>css/header.css" rel="stylesheet" />
<script language="JavaScript">
function onlyNumbers(evt)
{
	var e = event || evt; // for trans-browser compatibility
	var charCode = e.which || e.keyCode;
	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;
	return true;
}
function cmdsearch(){
	
	  var neighborhood=document.getElementById('neighborhood').value;
	  var specify=document.getElementById('specify').value;
	  
	  // Radio type search
	  var radioSearchType='all';
	  radiosearch1 = document.getElementById('radioSearchType1');
	  radiosearch2 = document.getElementById('radioSearchType2');
	  radiosearch3 = document.getElementById('radioSearchType3');
	  if (radiosearch1.checked) {
		  radioSearchType = 'sale';
	  } else if (radiosearch1.checked) {
		  radioSearchType = 'rent';
	  } else {
		  radioSearchType = 'all';
	  }
	  
	  var cbo_cat=document.getElementById('cbo_cat').value;
	  var minprice=document.getElementById('minprice').value;
	  var maxprice=document.getElementById('maxprice').value;
	  
	  if (neighborhood==""){neighborhood="";}
	  if (neighborhood!="" || specify!="" ){window.location="<?=site_url("property/search/?q=");?>"+neighborhood+"&specify="+specify+"&cbo_cat="+cbo_cat+"&searchType="+radioSearchType+"&min="+minprice+"&max="+maxprice+"&per_page="; }
	   else {return false;}
	   //document.forms[0].action='<?//=site_url("admin/authentication")?>';
	   //document.forms[0].submit();
}


function goto_search(){
		var productname=document.getElementById('txtsearch').value;
		var cboclassify=document.getElementById('cbocategory').value;
		window.location='<?=site_url("classify/search_result/?proname=");?>'+productname+"&cid="+cboclassify;
}

</script>
</head>
<body>
<div class="container">
   <div class="header"><?php include APPPATH."views/templates/common/header.php"; ?></div>
   <div class="menu_bar"><?php include APPPATH."views/templates/common/menu_bar.php"; ?></div>
   <div class="body"><?php include APPPATH."views/".$z_main_body_view.".php"; ?></div>
   <div class="push_footer">&nbsp;</div>
</div>
<div id="footer">
	<?php include APPPATH."views/templates/common/footer.php";?>
</div>
</body>
</html>
